-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[publication] Fix number of files in Upload tab #9179
[publication] Fix number of files in Upload tab #9179
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue appears to be resolved for new (proposed) projects, in uploadForm.js
, but not when editing an existing project, in viewProject.js
. (Tested on my VM)
…CamilleBeau/Loris into 2024_03_28_publication_numFiles
@jeffersoncasimir Fixed! Sorry about that |
@CamilleBeau conflicts in the changelog |
The issue has been resolved! |
Thanks! Conflict resolved. |
Brief summary of changes
In this PR, the uploadForm.js file is modified to increase / decrease the numFiles value according to whether a file was actually selected or not. If a file is selected, the numFiles increases. If a file is not selected, the numFiles decreases.
This prevents the bug where "File to Upload" field is added indefinitely if the file is browsed and then cancelled.
Testing instructions (if applicable)
Link(s) to related issue(s)